package com.ruoyi.worker.mapper;

import com.ruoyi.worker.domain.TermAttendanceGroupV2;
import com.ruoyi.worker.domain.workAttendance.dto.AttendanceShift;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface TermAttendanceGroupV2Mapper {

    void addOne(TermAttendanceGroupV2 info);

    void multiDel(@Param("ids") List<Integer> ids);

    void update(TermAttendanceGroupV2 info);

    void changeStatus(TermAttendanceGroupV2 info);

    TermAttendanceGroupV2 detail(Integer id);

    List<TermAttendanceGroupV2> records(TermAttendanceGroupV2 info);

    Map<String,String> shiftNameWithGroupId(Integer groupId);

    /**
    * @author: 陈宇寰
    * @date: 2021-12-29 14:41:01
    * @params:
    * @return:
    * @description: 可选项
    */
    List<TermAttendanceGroupV2> options();

    /**
    * @author: 陈宇寰
    * @date: 2021-12-25 22:51:32
    * @params:
    * @return:
    * @description: 用于考勤结果的判定
    */
    List<TermAttendanceGroupV2> info4Charge();

    /**
     * @author: 陈宇寰
     * @date: 2021-12-23 17:07:31
     * @params:
     * @return:
     * @description: 获取启用的考勤通用班次信息
     */
    List<AttendanceShift> listAttendanceShiftV2();
}
